/* 启动文件 */
require('babel-polyfill')

import Vue from 'vue'
import store from '@/store/index.js'
import router from '@/routes/'
import App from '@/components/App'

import * as filters from './filters' // 全局filter
//import 'babel-polyfill'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
// register global utility filters.
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
});
if (__DEV__) {
  console.info('[当前环境] 开发环境')
  Vue.config.devtools = true
  Vue.config.productionTip = false
}

if (__PROD__) {
  console.info('[当前环境] 生产环境')
  Vue.config.devtools = false
}
